/*
 * @Author: 杨伟韦
 * @Date: 2024-04-24 14:07:06
 * @LastEditors: 杨伟韦
 * @LastEditTime: 2024-10-07 17:06:16
 * @Description: 用户接口登录
 */
import qs from 'qs';
import axios from 'axios';

const baseURL = import.meta.env.APP_APIHOST;

const instance = axios.create({ baseURL });

// 创建微信二维码链接
export const createWxLoginErCode = (data: any) =>
  instance.post('/auth/createWxLoginErCode?' + qs.stringify(data));

// 手机号验证码登录
export const mobileLogin = (data: any) => instance.post('/auth/mobileLogin', data);

// 发送短信验证码
export const sendSmsCodeByLogin = (data: any) => instance.post('/auth/sendSmsCodeByLogin', data);

// 微信扫码授权登录
export const wxAppScanLogin = (data: any) => instance.post('/auth/wxAppScanLogin ', data);
